package cn.sofwin.day0126.homework.Pet;

public class Dog extends Pet{
    // 我也不知道这个有啥用
    private String strain;

    public Dog(String name, int health, int love) {
        super(name, health, love);
    }

    public String getStrain() {
        return strain;
    }

    @Override
    public void print() {
        System.out.println("宠物的自白：");
        System.out.print("我的名字叫" + super.getName());
        System.out.print("，我的健康值是" + super.getHealth());
        System.out.println("，我和主人的亲密程度是" + super.getLove());
    }
}
